package cn.calm.osgi.admin.bundle;

import org.apache.log4j.Logger;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

import cn.calm.osgi.admin.bundle.service.IBundleService;
import cn.calm.osgi.admin.bundle.service.impl.BundleServiceImpl;

public class Activator implements BundleActivator {
	private static final Logger log=Logger.getLogger(Activator.class);
	public static BundleContext context;

	@Override
	public void start(BundleContext arg0) throws Exception {
		log.debug("starting");
		context = arg0;
		IBundleService bundleService=new BundleServiceImpl();
		arg0.registerService(IBundleService.class.getName(), bundleService, null);
		log.debug("started");
	}

	@Override
	public void stop(BundleContext arg0) throws Exception {

	}

}
